<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../../vue.js"></script>
</head>
<body>
    <div class="demo1">
        <span v-if="seen">你看到我啦</span>
    </div>
    <hr>
    <div class="demo2">
        <p v-for="i in demos">
            {{i.text}}
        </p>
    </div>

    <script type="text/javascript">
        new Vue({
            el:'.demo1',
            data:{
               seen:true 
            }
        })
        new Vue({
            el:'.demo2',
            data:{
                demos:[
                    {text:'天气好好'},
                    {text:'出去玩咯'},
                    {word:'这句看不到哦'},
                    {text:'哈哈哈'}
                ]
            }
        })
    </script>
</body>
</html>